package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * SysPower entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_power")
public class SysPower implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;
	private String description;
	private Integer parameter;
	private Integer compid;
	private Integer editenable;
	private Integer syspower;
	private Date updatetime;
	private Integer updatetype;
	private String nameformat;

	// Constructors

	/** default constructor */
	public SysPower() {
	}

	// Property accessors
	@GeneratedValue(generator = "generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity")
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", unique = false, nullable = false, insertable = true, updatable = true, length = 200)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", unique = false, nullable = true, insertable = true, updatable = true, length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "parameter", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getParameter() {
		return this.parameter;
	}

	public void setParameter(Integer parameter) {
		this.parameter = parameter;
	}

	@Column(name = "compid", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getCompid() {
		return this.compid;
	}

	public void setCompid(Integer compid) {
		this.compid = compid;
	}

	@Column(name = "editenable", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getEditenable() {
		return this.editenable;
	}

	public void setEditenable(Integer editenable) {
		this.editenable = editenable;
	}

	@Column(name = "syspower", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getSyspower() {
		return this.syspower;
	}

	public void setSyspower(Integer syspower) {
		this.syspower = syspower;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "updatetime", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	@Column(name = "updatetype", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getUpdatetype() {
		return this.updatetype;
	}

	public void setUpdatetype(Integer updatetype) {
		this.updatetype = updatetype;
	}

	@Column(name = "nameformat", unique = false, nullable = false, insertable = true, updatable = true, length = 65535)
	public String getNameformat() {
		return this.nameformat;
	}

	public void setNameformat(String nameformat) {
		this.nameformat = nameformat;
	}

}